<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>
  
 </body>
</html>
<script>
//[\u4e00-\u9fa5\w]
var str = prompt('请输入');
var re = /^[\w\u4e00-\u9fa5]{6,8}$/g;
if (re.test(str))
{	
	alert('是');
}else{
	alert('不是');
};
</script>